package com.sms.constants;

/**
 * 系统常量定义类
 * 位置：com.sms.constant.SystemConstants
 */
public final class SystemConstants {
    // 文件路径常量
    // 资源目录下的data文件夹路径
    public static final String DATA_DIR = "./data/";

    // 文件路径常量（相对于resources目录）
    public static final String STUDENT_FILE = DATA_DIR + "students.txt";
    public static final String COURSE_FILE = DATA_DIR + "courses.txt";
    public static final String SCORE_FILE = DATA_DIR + "scores.txt";

    // 业务常量
    public static final int MIN_SCORE = 0;
    public static final int MAX_SCORE = 100;
    public static final int MIN_AGE = 15;
    public static final int MAX_AGE = 50;
    public static final int PAGE_SIZE = 10;
    public static final double MIN_CREDIT = 0.5;
    public static final double MAX_CREDIT = 10;

    // 格式常量
    public static final String DATE_FORMAT = "yyyy-MM-dd";
    public static final String ID_PATTERN = "^\\d{7}$";
    public static final String COURSE_ID_PATTERN = "^[A-Z]\\d{3}$";
}